package demo2;

public class Derived extends Base{
    public int a = 1;
    public int b;
    public int c;

    public void test() {
       /* System.out.println(this.a);
        System.out.println(super.a);//打印父类的
        System.out.println(b);
        System.out.println(c);*/
        super.method();
    }

    public void method() {
        System.out.println("derived method");
    }
}
